package com.recordhistory.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;

/**
 * @author ：LX
 * 创建时间： 2019/4/17. 17:35
 * 地点：广州
 * 目的: 年号 表
 * 备注说明：
 */
@TableName("reignTitle")
public class ReignTitle {

    @TableId
    private String id; //主键
    private String regin; //年号
    private String historyId; //历史表的主键，确定时间
    private String emperor; //对应的帝王，谁的年号。同一历史主键下不能重复

    private Timestamp createDate; //创建时间
    private Timestamp updateDate; //更新时间


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRegin() {
        return regin;
    }

    public void setRegin(String regin) {
        this.regin = regin;
    }

    public String getHistoryId() {
        return historyId;
    }

    public void setHistoryId(String historyId) {
        this.historyId = historyId;
    }

    public String getEmperor() {
        return emperor;
    }

    public void setEmperor(String emperor) {
        this.emperor = emperor;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public Timestamp getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Timestamp updateDate) {
        this.updateDate = updateDate;
    }
}
